package com.qnbc.mystery.pojo.domain;

import java.math.BigDecimal;

import com.qnbc.mystery.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 配送员信息对象 waimai_user
 *
 * @author guzj
 * @date 2024-01-15
 */
@ApiModel(value = "骑手用户信息")
public class WaimaiUser {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    @Excel(name = "用户名")
    private String userName;

    /**
     * 密码
     */
    @Excel(name = "密码")
    @ApiModelProperty("密码")
    private String password;

    /**
     * 骑手状态（1 接单 2 休息）
     */
    @Excel(name = "骑手状态", readConverterExp = "1=,接=单,2=,休=息")
    private String userStatus;

    /**
     * 电话
     */
    @Excel(name = "电话")
    @ApiModelProperty("电话")
    private String phone;

    /**
     * 骑手角色（1学生 2商家指定）
     */
    @Excel(name = "骑手角色", readConverterExp = "1=学生,2=商家指定")
    private String userType;

    /**
     * 账户金额
     */
    @Excel(name = "账户金额")
    private BigDecimal moneys;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus;
    }

    public String getUserStatus() {
        return userStatus;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getUserType() {
        return userType;
    }

    public void setMoneys(BigDecimal moneys) {
        this.moneys = moneys;
    }

    public BigDecimal getMoneys() {
        return moneys;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userName", getUserName())
                .append("password", getPassword())
                .append("userStatus", getUserStatus())
                .append("phone", getPhone())
                .append("userType", getUserType())
                .append("moneys", getMoneys())
                .toString();
    }
}
